Skip to content

fix(docs): revert npm hash-pinning that broke the Docs build#869

Closed
michalharakal wants to merge 1 commit into
developfrom
fix/docs-revert-npm-hash-pinning
Closed

fix(docs): revert npm hash-pinning that broke the Docs build#869
michalharakal wants to merge 1 commit into
developfrom
fix/docs-revert-npm-hash-pinning

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

Problem

Since PR #848 (Pin npm packages with their commit hash, merged as 343f54a3), the Docs job has failed on every PR at the Build Antora image step.

That PR rewrote the npm install in docs/.docker/Dockerfile to pull deps from /-/tree/<hash> URLs:

https://gitlab.com/antora/antora/-/tree/aa33c82.../packages/cli

Those are GitLab/GitHub web-UI pages, not tarballs, so npm downloads HTML and fails with:

npm error code TAR_BAD_ARCHIVE
npm error TAR_BAD_ARCHIVE: Unrecognized archive format

(Confirmed in run 30004869866.)

Fix

Restore the previous registry version pins until the commit-hash approach is reworked:

  • @antora/cli@3.1, @antora/site-generator@3.1
  • @antora/lunr-extension@1.0.0-alpha.8
  • @mermaid-js/mermaid-cli@11
  • asciidoctor-kroki@0.18

The node:20-alpine image digest pin and everything else from #848 are left untouched. A comment records the reverted hashes/target versions for whoever reworks the pinning.

Verification

docker build --no-cache   # succeeds, "added 430 packages"
docker run --rm <img> --version
#  @antora/cli: 3.1.15
#  @antora/site-generator: 3.1.15

🤖 Generated with Claude Code

PR #848 pinned the Antora/mermaid npm deps via GitLab/GitHub
`/-/tree/<hash>` URLs, but those are web-UI pages, not tarballs.
npm downloaded HTML and failed every docs build with
`TAR_BAD_ARCHIVE: Unrecognized archive format`, breaking the
Docs job on all PRs since the merge.

Restore the previous registry version pins (antora 3.1.x,
lunr-extension 1.0.0-alpha.8, mermaid-cli 11, asciidoctor-kroki
0.18) until the commit-hash pinning approach is reworked.

Verified: `docker build --no-cache` succeeds and `antora
--version` reports 3.1.15.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

📖 Documentation Preview

The documentation has been built successfully for this PR.

Generated Files:

  • Operator documentation: docs/modules/operators/_generated_/
  • JSON schema output: operators.json

Artifacts:

  • Download the documentation-preview-869 artifact to view the complete documentation locally.

This comment will be updated automatically when the PR is updated.

@michalharakal
michalharakal deleted the fix/docs-revert-npm-hash-pinning branch July 23, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant